from GraphTheme0.Theme0 import NodeItemTheme0, EdgeItemTheme0;
from GraphSettings.GraphFeatures import Token;

class GraphThemeManager():
    def __init__(self, nTheme=0):
        self.nTheme = nTheme;
    
    def newNode(self, pX=0, pY=0):
        if self.nTheme==0:
            nodeItem = NodeItemTheme0(pX, pY);
#             nodeItem.setActions(self.newActions(nodeItem));
            return nodeItem;
    
    def newEdge(self, objFrom=None, objTo=None, pTo=None):
        if self.nTheme==0:
            return EdgeItemTheme0(objFrom, objTo, pTo);
    
#     def newActions(self, parent=None):
#         self.actions = [];
#         if self.nTheme==0:
#             self.actions.append(ActionItemTheme0(parent, 150,75, 0));
#             self.actions.append(ActionItemTheme0(parent, 75,150, 90));
#             self.actions.append(ActionItemTheme0(parent, 0,75, 180));
#             self.actions.append(ActionItemTheme0(parent, 75,0, -90));
#             return self.actions;

    def newToken(self, qPos=None):
        if self.nTheme==0:
            return Token(qPos);
